home *** CD-ROM | disk | FTP | other *** search
/ Retro Gamer 13 / Retro Gamer 13.iso / Amiga Forever / WINDOWS / MenuBox / js / menubox.js < prev   
Encoding:
JavaScript  |  2004-02-01  |  1.3 KB  |  41 lines

  1. /* MenuBox ECMAScript/JavaScript/JScript Header File */
  2. /* V. 2.32 - Copyright 2002-2004 Cloanto Corporation */
  3. /* Free to Redistribute as per MenuBox Software EULA */
  4. /* Home Page: www.cloanto.com/menubox/ (menubox.com) */
  5.  
  6. var menubox_version = 0;
  7. if (window.external) if (window.external.menuboxversion) menubox_version = window.external.menuboxversion;
  8.  
  9. function menubox_close()
  10. {
  11.  if (menubox_version >= 200) window.external.close();
  12.  else window.close();
  13. }
  14.  
  15. function menubox_execute(file, parameters, directory, verb, show, absolutepath, wait)
  16. {
  17.  if (menubox_version >= 200) window.external.execute(file, parameters, directory, verb, show, absolutepath, wait);
  18.  else if (window.location) if (window.location.href) if (navigator.userAgent) if (file.length > 0)
  19.    {
  20.          if (file.charAt(file.length-1) == "\\" && navigator.userAgent.indexOf("MSIE 3") == -1) window.open(file,"_blank");
  21.         else window.location.href = file;
  22.    }
  23. }
  24.  
  25. function menubox_exists(file)
  26. {
  27.  if (menubox_version >= 230) return window.external.exists(file);
  28.  else return false;
  29. }
  30.  
  31. function menubox_language()
  32. {
  33.  if (menubox_version >= 230) return window.external.language;
  34.  else return "en";
  35. }
  36.  
  37. function menubox_title(title)
  38. {
  39.  if (menubox_version >= 232) window.external.title = title;
  40. }
  41.